<template>
    <div id="moviePage">
        <div>{{ id }}</div>
        <div>{{ detailmovie }}</div>
        <div>{{ movie }}</div>
        <div>{{ movieId }}</div>
        <div>{{cityId }}</div>
    </div>
</template>

<script>
export default {
    created(){
       this.id = this.$route.params.movieId;
       this.axios.get('/maoyan/ajax/detailmovie',{
           params:{
               movieId:this.id
           }
       }).then((res)=>{
           this.detailmovie = res.data.detailmovie
       })
       //影院信息
       this.axios.post('/maoyan/ajax/movie',{
           params:{
               movieId:this.id,
               day:'2018-12-20',
               offset:0,
               limit:20,
               cityId:20,
           }
       }).then((res)=>{
           console.log(res.data)
       })
    },
    data(){
        return {
            id:'',
            detailmovie:{},
            movie:{}


        }
    }
}
</script>